import { FC, CSSProperties } from "react";
import { GStyleSheet } from "@/utils/DarkMode";
import { View, Image } from "@tarojs/components";
import './index.less';

const dstyles = GStyleSheet.create({
  findView: {

  },
});

interface IProps {
  source: string;
  style?: CSSProperties;
}

const LoadingImage: FC<IProps> = ({ style, source }) => {
  const styles = dstyles.useDynamicStyle();
  return (
    <View className='LoadingImage' style={{ ...styles.findView, ...style }}>
      <Image src={source} className='radar' />
    </View>
  );
};

export default LoadingImage;
